package com.zmj.service.impl;



import java.util.List;

import com.zmj.dao.IOrderDao;
import com.zmj.dao.impl.OrderDaoImpl;
import com.zmj.entity.Order;
import com.zmj.entity.OrderDetail;
import com.zmj.service.IOrderService;



public class OrderServiceImpl implements IOrderService{

	IOrderDao orderDao = new OrderDaoImpl();
	
	/**
	 * 添加一条订单详情
	 * @param order
	 * @return
	 */
	public boolean addOrder(Order order){
		return orderDao.addOrder(order);
	}
	
	/**
	 * 添加商品详情
	 * @param list
	 * @return
	 */
	public boolean addOrderDetails(List<OrderDetail> list){
		return orderDao.addOrderDetails(list);
	}

	
	
}
